You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Incorrect support data (example: BrowserX says "86" but support was added in "40")
What information was incorrect, unhelpful, or incomplete?
Not all the attributes, like min and max are supported.
What browsers does this problem apply to, if applicable?
Safari
What did you expect to see?
Partial support would be a better display for the input type date.
Did you test this? If so, how?
We've developed a JS date picker, but iPhones still pop up their native iOS picker. Our date input fields have a correctly formatted min and max date values, but the iOS date picker doesn't show the dates as greyed out, as in other desktop browsers.
Can you link to any release notes, bugs, pull requests, or MDN pages related to this?
caugner
changed the title
html.elements.input.type_date - min max attributes are not supported in Safari (and other browsers) on iOS
html.elements.input.type_date - min/max attributes not supported in Safari iOS
May 9, 2025
With this MDN Playground (and this JSBin), I can confirm that min/max on an <input type="date"> don't prevent dates outside of that range from being selected in Safari iOS 18.4, Safari iOS 11, and Safari iOS 6 (via BrowserStack Live). However, these version do use the min/max values to determine the validity of the element (see this JSBin).
On Desktop, Safari 14.1 (the first version to support <input type="date"> it there), and Safari 18.4 also use min / max to prevent dates outside of that range from being selected. And Safari 18.4 (and not yet in Safari 14.1 to Safari 17.3) additionally grays out the disallowed dates.
Note that the spec does not appear to require these behaviors, so even though you may be used to those effects of setting min/max, it would be wrong to mark Safari's support as partial in BCD.
I'm closing this as won't fix, but I will bring this up in the next internal BCD meeting.
I'm closing this as won't fix, but I will bring this up in the next internal BCD meeting.
We discussed this in yesterday's BCD meeting, and came to the conclusion that a non-standard behavioral sub-feature could make sense here, so I'm reopening the issue.
Given that this affects not only min/max, but also step on <input type="date">, it would probably make sense to add this as a sub-feature of html.elements.input.type_date in this file, for example:
caugner
added
p4
Low priority – Community PRs accepted.
and removed
meeting agenda
Issues or pull requests in need of discussion in a project meeting.
labels
May 14, 2025
What type of issue is this?
Incorrect support data (example: BrowserX says "86" but support was added in "40")
What information was incorrect, unhelpful, or incomplete?
Not all the attributes, like min and max are supported.
What browsers does this problem apply to, if applicable?
Safari
What did you expect to see?
Partial support would be a better display for the input type date.
Did you test this? If so, how?
We've developed a JS date picker, but iPhones still pop up their native iOS picker. Our date input fields have a correctly formatted min and max date values, but the iOS date picker doesn't show the dates as greyed out, as in other desktop browsers.
Can you link to any release notes, bugs, pull requests, or MDN pages related to this?
https://bugs.webkit.org/show_bug.cgi?id=223128 bug since 2021
and https://stackoverflow.com/questions/26929297/html-5-input-type-date-control-max-date-is-not-working-in-iphone-ipad
Do you have anything more you want to share?
No. Thank you
MDN URL
https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/date
MDN metadata
MDN page report details
html.elements.input.type_date
The text was updated successfully, but these errors were encountered: